#include <cellcsp.h>
#include <string>
#include <stdio.h>
#include <csp_debug.h>




int main(){

	char *write_task = "./tasks/write_channel_task";
	char *read_task =  "./tasks/read_channel_task";
	
	CSPConfig conf;

	conf.add_csp_program(write_task, "write_channel_task");
	conf.add_csp_program(read_task , "read_channel_task");

	CellCSP_start(conf);

	printf("Running channel_test with files: %s, %s\n", read_task, write_task);
	
	CSPProcess write( "write_channel_task");
	CSPProcess read( "read_channel_task");

	Parallel par(&write,
				 &read, 
			 NULL) ; 
	par.Run();
	
	
	CellCSP_end();
	
	return 0;
}
